package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author yrd
 * @since 2025-07-07
 */
@Getter
@Setter
@ToString
@TableName("booking")
@Accessors(chain = true)
@ApiModel(value = "Booking对象", description = "")
public class Booking implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("flight_id")
    private Long flightId;

    @TableField("booking_time")
    private LocalDateTime bookingTime;

    @TableField("status")
    private String status;

    @TableField("price")
    private BigDecimal price;

    @TableField("currency")
    private String currency;

    /**
     * 供应商名称
     */
    @TableField("supplier")
    @ApiModelProperty("供应商名称")
    private String supplier;

    /**
     * 供应商订单号
     */
    @ApiModelProperty("供应商订单号")
    @TableField("supplier_reference")
    private String supplierReference;
}
